<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
	<table>
		<tr>
			<td>
				<form action="addRole" method="GET">
					<table>						
						<tr>
							<td>card number</td>
							<td><input type="text" name="cardNumber" /></td>				
						</tr>
						<tr>
							<td>first name</td>
							<td><input type="text" name="firstName" /></td>
							
						</tr>
						<tr>
							<td>last name</td>
							<td><input type="text" name="lastName" /></td>				
						</tr>
						<tr>
							<td>phone number</td>
							<td><input type="text" name="phoneNumber" /></td>				
						</tr>
						<tr>
							<td>email</td>
							<td><input type="text" name="email" /></td>				
						</tr>
						<tr>
							<td><input type="submit" value="add" /></td>
						</tr>
					</table>
				</form>
				<form action="deleteRole" method="GET">
					<table>
						<tr>
							<td>profile id</td>
							<td><input type="text" name="profileId" /></td>
							<td><input type="submit" value="delete"/></td>
						</tr>
					</table>
				</form>
			</td>
			<td>
				<form action="login_" method="get" >
					<table border="1" >
						<tr>
							<td colspan="2">
								${transaction.customer.userName}
							</td>
						</tr>
						<tr>
							<td>userName</td>
							<td><input type="text" name="userName" /></td>
						</tr>
						<tr>
							<td>password</td>
							<td><input type="text" name="password" /></td>
						</tr>
						<tr>
							<td colspan="2"><input type="submit" value="login"/></td>
						</tr>
					</table>
				</form>
			</td>
		</tr>
	</table>
		
	<table border="1">
		<tr>
			<th>id</th>
			<th>userName</th>
			<th>cardNumber</th>
			<th>firstName</th>
			<th>lastName</th>
			<th>phoneNumber</th>
			<th>email</th>			
		</tr>
		<c:forEach var="g" items="${profiles}">
		<tr>
			<td>${g.profileId}</td>
			<td>${g.customer.userName}</td>
			<td>${g.cardNumber}</td>
			<td>${g.firstName}</td>
			<td>${g.lastName}</td>
			<td>${g.phoneNumber}</td>
			<td>${g.email}</td>
		</tr>
		</c:forEach>
	</table>			
</body>
</html>